<br />
<div class="title"><?php echo '<b><font color="red">'.$this->post['Title'].'</font></b>'; //Hien thi tieu de cua bai Post duoc view ?></div>
<div class="description"><?php echo $this->post['Description'];  //Hien thi noi dung mo ta bai Post?></div>

<?php //Hien thi edit bai Post neu nhu da Auth va thoa man Acl
	$acl = new Default_Model_Acl(); 
	$identity = Zend_Auth::getInstance()->getIdentity();  //Lay thong tin getIdentity() ve tai khoan da duoc Auth
	if( Zend_Auth::getInstance()->hasIdentity() && $acl->isAllowed( $identity['Role'] ,'posts','edit') ) : //Method isAllowe() cua Zend::acl tham bien $identity lay thong tin getIdentity()cua cot 'Role' trong table users?>
<div><a href="<?php echo $this->baseUrl(). $this->edit;  //edit duoc render tu viewAction()?>">Edit</a></div>
<?php endif; ?> 

<?php //Hien thi Link delete bai Post neu nhu da Auth va thoa man Acl
	$acl = new Default_Model_Acl(); 
	$identity = Zend_Auth::getInstance()->getIdentity();  //Lay thong tin getIdentity() ve tai khoan da duoc Auth
	if( Zend_Auth::getInstance()->hasIdentity() && $acl->isAllowed( $identity['Role'] ,'posts','delete') ) : //Method isAllowe() cua Zend::acl tham bien $identity lay thong tin getIdentity()cua cot 'Role' trong table users?>
<div><a href="<?php echo $this->baseUrl(). $this->delete;  //delete duoc render tu viewAction()?>">Delete</a></div>
<?php endif; ?> 

<div class="comments">
	<?php 
		echo $this->commentsForm;
	?>
	<?php if( count($this->comments) ) : ?>
		<?php foreach( $this->comments as $comment ) : //Dung foreach de hien thi mang "nhung gia tri can hien thi" cua cac phan tu $comment?>
			<div class="postedby"><a href="<?php echo $comment['Webpage']; //Hien thi link lien ket den Webpage cua nguoi comment?>" >
										<br /><?php echo $this->escape( $comment['Name'] ); //Hien thi ten that cua nguoi comment ko nhat thiet cung ten voi users cua Acc?>
								</a> on <span><?php echo $this->escape( date( 'd-m-Y', strtotime($comment['Postedon']) ) ); //Hien thi time real cho comment va dat trong the <span> ?></span></div>
			<div class="comment"><?php echo $this->escape( $comment['Description'] ); //Hien thi noi dung comments ?></div>
		<?php endforeach; ?>
	<?php else : //Neu nguoc lai count($this->coments) != true hien thi No comments  ?>
		<div>No comments</div>
	<?php endif; ?>
	<br/><br />
</div>
